package com.changgou.goods.feign;

import com.changgou.entity.Result;
import com.changgou.goods.pojo.Spu;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "goods")
public interface SpuFeign {

    //根据spuId查询Spu数据
    //Spu数据里面包含,category1Id,category2Id,category3Id
    //通过spuId查询Sku列表信息

    @GetMapping("/spu/{id}")
    public Result<Spu> findById(@PathVariable("id") String id);
}
